]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensions-app: Add description tooltip to rows
authorLeleat <atule@pm.me>
Wed, 10 Feb 2021 01:18:19 +0000 (02:18 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 11 Feb 2021 10:20:30 +0000 (11:20 +0100)
... to allow showing the full description in case the label is ellipsized.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1663>

subprojects/extensions-app/js/main.js

index 624318197bb001e851ffaccca9f13ac38c94dacf..5b5a6e403627abe01ee226266aa1ca5a4b8d36f9 100644 (file)
@@ -421,8 +421,9 @@ var ExtensionRow = GObject.registerClass({
 
         this._nameLabel.label = this.name;
 
-        let desc = this._extension.metadata.description.split('\n')[0];
+        const desc = this._extension.metadata.description.split('\n')[0];
         this._descriptionLabel.label = desc;
+        this._descriptionLabel.tooltip_text = desc;
 
         this._revealButton.connect('clicked', () => {
             this._revealer.reveal_child = !this._revealer.reveal_child;